<?php

	class Team
	{		 
		public function __construct( $name, $arena, $defender, $midfielder, $forward, $logo = 'nologo.png' )
		{
			$this->name       = $name;
			$this->logo       = $logo;
			$this->arena      = $arena;
			$this->defender   = $defender;
			$this->midfielder = $midfielder;
			$this->forward    = $forward;
			$this->rating     = ( $this->defender->physics+$this->midfielder->physics+$this->forward->physics ) / 3;
			$this->morale     = ( $this->defender->morale + $this->midfielder->morale + $this->forward->morale ) / 3;
			$this->shape      = ( $this->defender->shape + $this->midfielder->shape + $this->forward->shape ) / 3;
		}
	}

?>